﻿<%@ page language="java" import="java.util.*" pageEncoding="utf-8"
	isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
    String path = request.getContextPath();
			String basePath = request.getScheme() + "://"
					+ request.getServerName() + ":" + request.getServerPort()
					+ path + "/";
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css" />
<link href="<%=request.getContextPath()%>/css/select.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.idTabs.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/select-ui.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/editor/kindeditor.js"></script>

<script type="text/javascript">
    KE.show({
        id : 'content7',
        cssPath : './index.css'
    });
  </script>
  
<script type="text/javascript">
$(document).ready(function(e){
    $(".select1").uedSelect({
		width : 345			  
	});
	$(".select2").uedSelect({
		width : 167  
	});
	$(".select3").uedSelect({
		width : 100
	});
});

</script>
<script type="text/javascript">
$(document).ready(function(){
  $(".click").click(function(){
 	 $(".tip").fadeIn(200);
  });
  
  $(".cancel").click(function(){
	  $(".tip").fadeOut(100);
	  $(".butongguo").fadeOut(100);
  });
});
</script>
<style type="text/css">
	label{
		font-size:13;
	}
</style>
</head>

<body>

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><e>首页</e></li>
    <li><e>用户管理</e></li>
    <li><e>企业审核</e></li>
    <li><e>查看详情</e></li>
    </ul>
    </div>
    
    <div class="formbody">
    
    
    <div id="usual1" class="usual"> 
    
    <div class="itab">
  	<ul> 
    <li><a href="#tab1" class="selected" style="font-size:15">企业详情</a></li> 
    
  	</ul>
    </div> 
    
  	<div id="tab1" class="tabson">
    <c:forEach items="${lists}" var="data">
    <ul class="forminfo">
    <li><label>姓名</label><input name="background" type="text" class="dfinput"  readonly ="readonly" value="${data.username}" style="font-size:13"/></li>
    <li><label>手机号</label><input name="background" type="text" class="dfinput"  readonly ="readonly" value="${data.phone}" style="font-size:13"/></li>
    <li><label>身份认证</label>
    	<c:if test="${data.identity_audit == 0}"><input name="jobYears" type="text" class="dfinput" readonly ="readonly" value="未认证"/></c:if>
		<c:if test="${data.identity_audit == 1}"><input name="jobYears" type="text" class="dfinput" readonly ="readonly" value="已认证"/></c:if>
		<c:if test="${data.identity_audit == 2}"><input name="jobYears" type="text" class="dfinput" readonly ="readonly" value="未认证"/></c:if>
    </li>
    <li><label>企业名称</label><input name="background" type="text" class="dfinput"  readonly ="readonly" value="${data.company_name}" style="font-size:13"/></li>
     <li><label>企业地址</label><input name="background" type="text" class="dfinput"  readonly ="readonly" value="${data.company_address}" style="font-size:13"/></li>
    <li><label>企业法人</label><input name="background" type="text" class="dfinput"  readonly ="readonly" value="${data.company_person}" style="font-size:13"/></li>
    <li><label>法人手机号</label><input name="background" type="text" class="dfinput"  readonly ="readonly" value="${data.mobile}" style="font-size:13"/></li>
    <li><label>固定电话</label><input name="background" type="text" class="dfinput"  readonly ="readonly" value="${data.fixation_mobile}" style="font-size:13"/></li>
    <li><label>法人身份证</label><input name="background" type="text" class="dfinput"  readonly ="readonly" value="${data.person}" style="font-size:13"/></li>
    <li><label>身份证正面</label><img src="${data.card_just}" height="180px" width="300px"/><strong id="job1"></strong></li>
   	<li><label>身份证反面</label><img src="${data.card_back}" height="180px" width="300px"/><strong id="job1"></strong></li>
    <li><label>营业执照</label> <img src="${data.business_license}" height="180px" width="300px"/><strong id="job1"></strong>
    	<input type="hidden" value="${data.id}"/>
    </li>
    <li><label>提交时间</label><input name="background" type="text" class="dfinput"  readonly ="readonly" value="${data.create_time}" style="font-size:13"/></li>
    <li><label>审核人</label><input name="background" type="text" class="dfinput"  readonly ="readonly" value="${data.name}" style="font-size:13"/></li>
    <li><label>认证状态</label>
    	<c:if test="${data.audit != 1}"><input name="jobYears" type="text" class="dfinput" readonly ="readonly" value="待审核"/>
    		<div style="margin-left:110px;" class="tipbtn">
				<input name="tongguo" type="button"  class="sure" value="审核通过"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<input name="butongguo" type="button" class="sure" value="审核不通过" />
			</div>
    	</c:if>
		<c:if test="${data.audit == 1}"><input name="jobYears" type="text" class="dfinput" readonly ="readonly" value="审核通过"/></c:if>
		<c:if test="${data.audit == 2}"><input name="jobYears" type="text" class="dfinput" readonly ="readonly" value="审核不通过"/></c:if>
    </li>
    </ul>
    </c:forEach>
<!--     <input style="margin:-65px 0 0 55px;" name="fanhui"type="button"  class="sure" value="返回"/> -->
    </div> 
    
   		<div class="tip">
			<div class="tiptop">
				<span>提示信息</span>
			</div>
			<div class="tipinfo">
				<span><img src="<%=request.getContextPath()%>/images/ticon.png" /></span>
				<div class="tipright">
					<p>是否确认审核通过 ？</p>
					<cite>如果是请点击确定按钮 ，否则请点取消。</cite>
				</div>
			</div>
			<div class="tipbtn">
				<input name="" type="button" class="sure" value="确定"/>&nbsp;<input name="" type="button" class="cancel" value="取消" />
			</div>
		</div>
		
		<div class="butongguo" style="width:485px; height:260px; position:absolute;top:10%; left:30%;background:#fcfdfd;box-shadow:1px 8px 10px 1px #9b9b9b;border-radius:1px;behavior:url(js/pie.htc); display:none; z-index:111111;">
			<div class="tiptop">
				<span>提示信息</span>
			</div>
			<div class="tipinfo">
				<span><img src="<%=request.getContextPath()%>/images/ticon.png" /></span>
				<div class="tipright">
					<p>是否确认审核不通过 ？</p>
					<cite>如果是请点击确定按钮 ，否则请点取消。</cite>
				</div>
			</div>
			<div class="tipbtn">
				<input name="" type="button" class="sure" value="确定"/>&nbsp;<input name="" type="button" class="cancel" value="取消" />
			</div>
		</div>
    
  </div>
  	<script type="text/javascript">

		var flag = true,//状态true为正常的状态,false为放大的状态
        imgH,//图片的高度
        imgW,//图片的宽度
        img = document.getElementsByTagName('img')[0];//图片元素
	img.onclick =  function(){
   //图片点击事件
    imgH = img.height; //获取图片的高度
    imgW = img.width; //获取图片的宽度
    if(flag){
        //图片为正常状态,设置图片宽高为现在宽高的2倍
        flag = false;//把状态设为放大状态
        img.height = imgH*4.5;
        img.width = imgW*4.5;
    }else{
        //图片为放大状态,设置图片宽高为现在宽高的二分之一
        flag = true;//把状态设为正常状态
        img.height = imgH/4.5;
        img.width = imgW/4.5;
    }

	}
  	
	var flag1 = true,//状态true为正常的状态,false为放大的状态
    img1H,//图片的高度
    img1W,//图片的宽度
    img1 = document.getElementsByTagName('img')[1];//图片元素
img1.onclick =  function(){
//图片点击事件
img1H = img1.height; //获取图片的高度
img1W = img1.width; //获取图片的宽度
if(flag1){
    //图片为正常状态,设置图片宽高为现在宽高的2倍
    flag1 = false;//把状态设为放大状态
    img1.height = img1H*4.5;
    img1.width = img1W*4.5;
}else{
    //图片为放大状态,设置图片宽高为现在宽高的二分之一
    flag1 = true;//把状态设为正常状态
    img1.height = img1H/4.5;
    img1.width = img1W/4.5;
}

}
        
        
var flag2 = true,//状态true为正常的状态,false为放大的状态
img2H,//图片的高度
img2W,//图片的宽度
img2 = document.getElementsByTagName('img')[2];//图片元素
img2.onclick =  function(){
//图片点击事件
img2H = img2.height; //获取图片的高度
img2W = img2.width; //获取图片的宽度
if(flag2){
//图片为正常状态,设置图片宽高为现在宽高的2倍
flag2 = false;//把状态设为放大状态
img2.height = img2H*4.5;
img2.width = img2W*4.5;
}else{
//图片为放大状态,设置图片宽高为现在宽高的二分之一
flag2 = true;//把状态设为正常状态
img2.height = img2H/4.5;
img2.width = img2W/4.5;
}

} 
        
  	$(function(){
			 $("input[name=tongguo]").click(function(){
				 var id = $("input[type=hidden]").val();
				 var flag = confirm("是否确认通过？")
				 if(flag){
					 window.location.href="/htx-backer/updateCompanyStatus?id=" + id + "&audit=1";
				 }
			 });
			 
			 $("input[name=butongguo]").click(function(){
				 var id = $("input[type=hidden]").val();
				 var flag = confirm("是否确认不通过？")
				 if(flag){
					 window.location.href="/htx-backer/updateCompanyStatus?id=" + id + "&audit=2";
				 }
			 });
		})		
    </script>
</body>
</html>
